<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Sets the connections weight</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="fannconnection.getweight.html">FANNConnection::getWeight</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.json.html">JSON</a></div>
 <div class="up"><a href="class.fannconnection.html">FANNConnection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="fannconnection.setweight" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">FANNConnection::setWeight</h1>
  <p class="verinfo">(PECL fann &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">FANNConnection::setWeight</span> &mdash; <span class="dc-title">Sets the connections weight</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-fannconnection.setweight-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>FANNConnection::setWeight</strong></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$weight</code></span>
   )</div>

  <p class="para rdfs-comment">
   Sets the connection weight.
  </p>
  <p class="para">
    This method is different than <span class="function"><a href="function.fann-set-weight.html" class="function">fann_set_weight()</a></span>. It does not
   update the weight value in the network. The network value is updated only after calling
   <span class="function"><a href="function.fann-set-weight-array.html" class="function">fann_set_weight_array()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-fannconnection.setweight-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">weight</code></em></dt>

     <dd>

      <p class="para">
       The connection weight.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-fannconnection.setweight-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">Returns <strong><code>TRUE</code></strong> on success, or <strong><code>FALSE</code></strong> otherwise.</p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="fannconnection.getweight.html">FANNConnection::getWeight</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.json.html">JSON</a></div>
 <div class="up"><a href="class.fannconnection.html">FANNConnection</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
